5 'SPI RX' in Betaflight is a framework that allows for radio chips to be connected directly to the flight controller's MCU, and to be controlled by the firmware. This allows for the implementation of the functionality that controls the radio chip, and translates the received signals into RC control signals as part of the firmware.
7 This has a number of advantages:
8 - the RX can be directly added to the flight controller board, allowing for smaller builds (after all, not many people want to use a flight controller _without_ an RX);
9 - it does not require one or more extra UARTs on the flight controller, and there is no risk of problems caused by a wrong UART configuration;
10 - it does not require an extra MCU to control the radio chip, and can therefore be produced / sold cheaper;
11 - since the RX 'firmware' is part of the flight controller firmware, fixes and updates will be applied as part of flight controller firmware updates, eliminating the need for (often cumbersome) RX firmware updates.
13 But there are also disadvantages:
14 - a flight controller board will only have one radio chip, and will only be able to support the RC protocols that are using this chip. Changing to a different protocol is often not possible.
19 This driver uses the SPI RX framework in Betaflight to provide support for the FrSky 2.4 GHz RC protocols, based on a CC2500 radio chip, with additional support for a PA/LNA (power amplifier / low noise amplifier) chip with antenna diversity, in order to provide sufficient power / sensitivity for outdoor flying.
21 The supported protocols are:
25 - 8 channels / 9 ms frame spacing;
26 - called 'D8' in OpenTX;
27 - integrated FrSky hub telemetry.
31 - 8 channels / 9 ms frame spacing **or** 16 channels / 18 ms frame spacing;
32 - called 'D16' in OpenTX;
33 - integrated FrSky SmartPort telemetry (including support for MSP over Smartport / lua scripts in OpenTX);
37 - LBT protocol version compatible with EU;
38 - 8 channels / 9 ms frame spacing **or** 16 channels / 18 ms frame spacing;
39 - called 'D16' in OpenTX;
40 - integrated FrSky SmartPort telemetry (including support for MSP over Smartport / lua scripts in OpenTX);
45 1. in Betaflight configurator, go to the 'Configuration' tab, in 'Receiver' box, select 'SPI RX support' for 'Receiver mode':
47 ![FrSky SPI RX mode selection](assets/images/frsky_spi_rx_mode.png)
49 2. in the 'SPI Bus Receiver Provider' drop down that appears, select 'FRSKY_D', 'FRSKY_X' or 'FRSKY_X_LBT' (depending on the desired protocol):
51 ![FrSky SPI RX protocol selection](assets/images/frsky_spi_rx_protocol.png)
53 3. click 'Save & Reboot'. After the reboot, the RX LED will confirm that the FrSky RX is active by blinking slowly;
54 4. enter bind mode by either:
55 - pressing the 'Bind' button on the flight controller (if there is one and it's reachable);
56 - entering CLI, and typing 'bind_rx_spi[Enter]'.
57 5. the flight controller will indicate that bind mode is active by changing the RX LED to be permanently on. Now, on your TX, enter bind mode for the selected FrSky protocol (see screenshots for OpenTX):
61 ![FrSky SPI RX FrSky D binding with OpenTX](assets/images/frsky_spi_rx_d_binding.png)
63 FrSky X and X_LBT protocol:
65 ![FrSky SPI RX FrSky X binding with OpenTX](assets/images/frsky_spi_rx_x_binding.png)
67 6. Once binding has completed, the flight controller will indicate this by blinking the RX LED slowly. There's no indication on the CLI, but you can observe successful binding by quitting the bind mode on TX, and seeing if `status` doesn't list RXLOSS anymore in "Arming disable flags". A reboot of the flight controller is not required.
72 - the RX bind information is stored in the following CLI parameters: `frsky_spi_tx_id` (internal TX id), `frsky_spi_offset` (frequency offset), `frsky_spi_bind_hop_data` (frequency hop sequence), and `frsky_x_rx_num` (RX number; FrSky X only). These are printed as part of a CLI `diff` / `dump`, and will be restored after a firmware update, making it unnecessary to do another bind after the update;
73 - resetting the above parameters to defaults will 'erase' the binding information;
74 - the CLI parameter `frsky_spi_autobind` can be enabled to configure the FrSky SPI RX to attempt a bind on every power up. This is mostly useful for demonstration models that should bind to whatever TX is powered up in the vicinity.
79 - midelic for reverse engineering and reimplementation of the FrSky protocols;
80 - Eric Freund (eric_fre@hotmail.com) for the design of the first prototype flight controller with FrSky SPI RX.
83 ## Boards with FrSky SPI RX
85 - [Midelic F3](https://github.com/betaflight/betaflight/wiki/Board-Midelic-F3) (prototype only, not commercially available);
86 - [Matek F411-ONE](http://www.mateksys.com/?portfolio=f411-one);
87 - [CrazyBee F3 FR](boards/Board%20-%20CrazyBeeF3FR.md);
88 - [CrazyBee F4 FR Pro](boards/Board%20-%20CrazyBeeF4FRPro.md);